if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_LoginSession_Administrator]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[LoginSession] DROP CONSTRAINT FK_LoginSession_Administrator
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Administrator]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Administrator]
GO

CREATE TABLE [dbo].[Administrator] (
	[Id] [int] IDENTITY (1, 1) NOT NULL ,
	[Username] [varchar] (128) COLLATE Latin1_General_CI_AS NOT NULL ,
	[Password] [varchar] (64) COLLATE Latin1_General_CI_AS NOT NULL 
) ON [PRIMARY]
GO

